package com.java.lang;

public class Base {

    public boolean equals(Object object){
        if (this == object){
            return true;
        }
        //如果是字符串类型
        if (object instanceof String){
            String anotherString = (String)object;
            //比较每一个字符
            char[] charArr = anotherString.toCharArray();
            for (int i = 0; i < charArr.length; i++) {
                //
            }

        }
        return false;
    }
}
